package com.usian.search.service;

import com.usian.model.article.dtos.ArticleDto;
import com.usian.model.search.dtos.UserSearchDto;

import java.util.List;

/**
 * @author Fay
 * @date 2022/7/21&18:47
 */
public interface ApArticleSearchService {
    /**
     * 向mango导入数据
     * @param articleDto
     */

    void createIndex(ArticleDto articleDto);

    /**
     ES文章分页搜索
     @return
     */
    List<ArticleDto> esArticleSearch(UserSearchDto userSearchDto);
}
